<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ include file="/WEB-INF/jsp/component/common.jsp"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge"></meta>
    <title>设备管理</title>
    <script src="../assets/js/views/vue.min.js"></script>
    <script type="text/javascript" src="../assets/js/echarts.js"></script>
    <link rel="stylesheet" href="${frames}/css/lib/bootstrap.min.css" type="text/css" type="text/css">
    <link rel="stylesheet" href="${frames}/css/paginate.css" type="text/css">
    <script src="${js}/jquery-1.9.1.min.js"></script>
    <%--<link rel="stylesheet" href="${frames}/css/table.css" type="text/css">--%>
    <link rel="stylesheet" href="${frames}/css/qulitity.css" type="text/css" type="text/css">
    <%--<link rel="stylesheet" href="../assets/css/views/modules/_common.scss">--%>
    <%--<link rel="stylesheet" href="${assets}/css/views/department/departmentMgr.css">--%>
    <script src="${js}/jquery.dataTables.js"></script>
    <style>
    .btn{
        width:100px !important;
        margin-left:18px;
    }
    </style>
</head>
<body>
<div class="wrap">
    <h4 style="text-align:center;margin-top:25px;">是否打印？</h4>
    <br>
    <button type="button" class="btn btn-primary" data-dismiss="modal" id="closeModalButt" @click="PrintFrame()">确定</button>
    <button type="submit" name="submit" class="btn" @click="closeFrame()" style="background:#D3D3D3;color:white">取消</button>
</div>

<script>
   var vm = new Vue({
       el:'.wrap',
       data:{
           id:'',
           url:''
       },
       mounted(){
           this.id = location.search.split('?')[1].split('=')[1]
           console.log(this.id)
       },
       methods:{
           closeFrame(){
               window.parent.closeModal();
               parent.showSrc('${URL_RENT_TORENTMGR}')
           },
           PrintFrame(){
               window.parent.closeModal();
               parent.showSrc('${URL_RENT_TORENTMGR}?id='+this.id)
           }
       }
   })
</script>
</body>
</html>